package com.seng.resourcetycoon.gui.models;

import java.math.BigDecimal;

public class Upgrade {

    private String name;
    private final BigDecimal buyPrice;

    public Upgrade(String name, BigDecimal buyPrice) {
        this.name = name;
        this.buyPrice = buyPrice;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getBuyPrice() {
        return buyPrice;
    }

    public BigDecimal getSellPrice() {
        return buyPrice.multiply(BigDecimal.valueOf(0.8));
    }
}
